import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
// 导入路由模式对应的组件，hash  history
import {BrowserRouter} from 'react-router-dom'
// 全局引入andt的样式
import 'antd/dist/antd.css';
// 引入axios
import axios from 'axios'
// 全局使用
Component.prototype.http = axios;

ReactDOM.render(
  <BrowserRouter>
    <App />
  </BrowserRouter>,
  document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
